<?php 

/**
* 汽车类
*/
class Car extends Jiqi
{
	//成员属性
	public $name;
	public $color;
	public $lenght;
	public static $num=56;
	//构造函数
	public function __construct($name,$color)
	{
		self::$num++;
		$this->name=$name;
		$this->color=$color;
	}

	public static function dd(){
		echo "我是一辆DD";
	}

	public function shownum()
	{
		echo self::$num;
	}
	public function run()
	{
		echo $this->name."会跑";

	}
	protected function zairen()
	{
		echo "载人";
	}

	public function test()
	{
		$this->zairen();
	}

	public function __destruct()
	{
		echo "我是析构方法，死的时候执行";
	}

	public function qiyou()
	{
		echo $this->name."烧汽油";
	}
}












 ?>